<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">	
        <meta name="apple-mobile-web-app-capable" content="yes">
        <link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('handan/images/logo-icon.png')}}" />
        <title>EAI交易圈</title>
        <link rel="stylesheet" href="{{URL::asset('mobile/css/public.css') }}"/>
        <link rel="stylesheet" href="{{URL::asset('mobile/css/jquery.mobile-1.4.3.min.css')}}" />
        <link rel="stylesheet" href="{{URL::asset('mobile/css/index.css') }}"/>
		<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"> </script>
    </head>
<body>
<!-- 内容区域 -->
<div id="container">
	<div data-role="page" style="background:#17191d;">
			<section>
				<div class="search">
					<i class="onClickSearch"></i>
					<form  action="" method="post" id="searchSubmit">
						<input type="text" placeholder="请输入品种名称" id="searchInput" />
					</form>
				</div>
				<div class="cancel">
					取消
				</div>
			</section>
			<nav>
				<ul>
					<li>交易品种</li>
					<li>卖出价</li>
					<li>买入价</li>
				</ul>
			</nav>
		<div data-role="content" id="j_content">
			<ul data-role="listview" class="swipe-delete" id="j_ul_append">
				<!--<li>
					<div class="behind">
						<a href="#" class="ui-btn delete-btn">Delete</a>
					</div>
					<a href="#" id="item">
						<input type="hidden" name="sellFXXAUUSD" value="1263.22"/>
						<div>
							<p>黄金美元 <img src="{{ URL::asset('mobile/image/chart/XAUUSD.png') }}"/></p>
							<p>XAUUSD</p>
						</div>
						<input type="hidden" name="buyFXXAUUSD" value="1263.22"/>
						<div class="red">1263.22
							<img src="{{ URL::asset('mobile/image/top.png') }}" alt="" />
						</div>
						<div class="gray">1263.22</div>
					</a>
				</li>-->
			</ul>
			<div id="j_append" onclick="window.location.href='{{url('/append')}}'"></div>
			<div id="j_bottom"></div>
		</div>
	</div>
</div>
<!-- 引导页 -->
	<div class="yindao" style="width: 100%;height: 100%;position: fixed;z-index: 1;display: none;">
		<img src="{{ URL::asset('mobile/image/yindao.png') }}" style="width: 100%;height: 100%;" />
		<div class="yindao_close" style="width: 5.607rem;height: 1.492rem;position: fixed;z-index: 2;top: 68%;bottom:0;left:0;right:0;margin: auto;">
			<img src="{{ URL::asset('mobile/image/yindaoclose.png') }}" alt="">
		</div>
	</div>
@include('mobile.footer')
<style>
	/*底部行情应用样式*/
	footer ul li:nth-child(1) a {
		color: #3B9CE0;
	}
	footer ul li:nth-child(1) a i {
	  background: url("{{URL::asset('mobile/image/hq_icond.png')}}") no-repeat center / cover;
	}
</style>
	<!-- js引入 -->
	<script src="{{URL::asset('mobile/js/public.js') }}"></script>
	<script src="{{URL::asset('mobile/js/jquery-1.10.0.min.js')}}"></script>
	<script src="{{URL::asset('mobile/js/jquery.mobile-1.4.3.min.js') }}"></script>
	<script src="{{URL::asset('mobile/js/index.js') }}"></script>
	<script>
		var j_top     = "{{ URL::asset('mobile/image/top.png') }}",
			j_down    = "{{ URL::asset('mobile/image/down.png') }}",
			P_zhong   = "{{ URL::asset('mobile/image/chart') }}/",
			starttime = '{{$starttime}}',
			endtime   = '{{$endtime}}',
			nowtime   = Date.parse(new Date()),
			timer     = 0,
            issession = '{{session("eai")["id"]}}',
            deleteUrl = "{{ url('/deltypename') }}",
            MyPzList  = '{{$typename}}',
            hangqingUrl = "{{ url('/hd') }}";

		wx.config({
			debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
			appId: '{{$configarr['appId']}}', // 必填，公众号的唯一标识
			timestamp: {{$configarr['timestamp']}}, // 必填，生成签名的时间戳
			nonceStr: "{{$configarr['nonceStr']}}", // 必填，生成签名的随机串
			signature: "{{$configarr['signature']}}",// 必填，签名，见附录1
			jsApiList: [
				'checkJsApi',
				'onMenuShareTimeline',
				'onMenuShareAppMessage',
				'onMenuShareQQ',
				'onMenuShareWeibo',
				'hideMenuItems',
				'showMenuItems'
			] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
		});
		wx.ready(function () {
			var title = 'EAI交易圈';
			var desc  = '让交易变得更智能';
			var link  = 'http://m.eaifx.com';
			var imgurl = 'http://www.eaifx.com/index/images/minbanner.png';
			// 监听“分享给朋友”，按钮点击、自定义分享内容及分享结果接口
			wx.onMenuShareAppMessage({
				title: title,
				desc: desc,
				link: link,
				imgUrl: imgurl,
				trigger: function (res) {
					// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
//					alert('用户点击发送给朋友');
				},
				success: function (res) {
					alert('已分享');
				},
				cancel: function (res) {
					alert('已取消');
				},
				fail: function (res) {
//                alert(JSON.stringify(res));
					alert('分享失败');
				}
			});

			// 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
			wx.onMenuShareTimeline({
				title: title,
				link: link,
				imgUrl: imgurl,
				trigger: function (res) {
					// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
//					alert('用户点击分享到朋友圈');
				},
				success: function (res) {
					alert('已分享');
				},
				cancel: function (res) {
					alert('已取消');
				},
				fail: function (res) {
					alert(JSON.stringify(res));
				}
			});

			// 监听“分享到QQ”按钮点击、自定义分享内容及分享结果接口
			wx.onMenuShareQQ({
				title: title,
				desc: desc,
				link: link,
				imgUrl: imgurl,
				trigger: function (res) {
//					alert('用户点击分享到QQ');
				},
				complete: function (res) {
//					alert(JSON.stringify(res));
				},
				success: function (res) {
					alert('已分享');
				},
				cancel: function (res) {
					alert('已取消');
				},
				fail: function (res) {
					alert(JSON.stringify(res));
				}
			});

			// 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口

			wx.onMenuShareWeibo({
				title: title,
				desc: desc,
				link: link,
				imgUrl: imgurl,
				trigger: function (res) {
//					alert('用户点击分享到微博');
				},
				complete: function (res) {
//					alert(JSON.stringify(res));
				},
				success: function (res) {
					alert('已分享');
				},
				cancel: function (res) {
					alert('已取消');
				},
				fail: function (res) {
					alert(JSON.stringify(res));
				}
			});

			// 监听“分享到QZone”按钮点击、自定义分享内容及分享接口
			wx.onMenuShareQZone({
				title: title,
				desc: desc,
				link: link,
				imgUrl: imgurl,
				trigger: function (res) {
//					alert('用户点击分享到QZone');
				},
				complete: function (res) {
//					alert(JSON.stringify(res));
				},
				success: function (res) {
					alert('已分享');
				},
				cancel: function (res) {
					alert('已取消');
				},
				fail: function (res) {
					alert(JSON.stringify(res));
				}
			});
		});
	</script>
</body>
</html>
    	
